<template>
  <div class="channel-page">
    <div class="sub-header fixed" data-spm="hdn">
      <header class="header__l">
        <a class="back-home" href="#" @click="toMain">
          <i class="back icon-left"></i>
          <cite class="sohu"></cite>
          <h2 class="home">首页</h2>
        </a>
        <a class="back-sub" href="#">
            <slot />
        </a>
      </header>
    </div>
  </div>
</template>

<script>
import "../../assets/css/newsCss/newsPageHeader.css";

export default {
  data() {
    return {};
  },
  methods: {
      toMain(){
          this.$router.push({name:'main'})
      }
  },
  computed: {},
  watch: {},
  created() {},
  mounted() {}
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
</style>
